package com.alex.common.exception;

import com.alex.common.ILogger;
import com.alex.common.filter.EnvironmentFilter;

public class AlexMsgException extends Exception {

	private static final long serialVersionUID = 5408213075058680425L;

	private String msg;

	public AlexMsgException(String msg, Throwable t) {
		super(msg, t);
		this.msg = msg;
		ILogger.logger_common.error(msg, t);
		if (EnvironmentFilter.isTest) {
			System.out.println("########" + msg + "########");
		}
	}

	public String getMsg() {
		return msg;
	}

}
